function save() {
    let coding = $("#coding").val().trim();
    let name = $("#name").val().trim();
    let password = $("#password").val().trim();
    let role = $("#role option:selected").text().trim();
    let department = $("#department option:selected").text().trim();
    let phone = $("#phone").val().trim();

    if(coding==""||name==""||password==""||role==""||department==""||phone==""){
        alert("所有信息均不能为空!")
        return;
    }

    let json={
        coding:coding,
        name:name,
        password:password,
        role:role,
        department:department,
        phone:phone,
    }

    // alert(1);


    $.getJSON('/lq/add',json,function (dataA) {
        if(dataA==true){
            alert("添加成功！")
            window.location.href="/lq/userRole"
        }else{
            alert("添加失败！")
        }
    })
}